﻿<{include file="header.htm"}>
<link href="<{$config.weburl}>/templates/default/css/booking.css" rel="stylesheet" media="screen" type="text/css" />
<script src="<{$config.weburl}>/templates/default/js/layer/layer.min.js"></script>
<script language="javascript" type="text/javascript" src="<{$config.weburl}>/templates/default/js/jquery.validate.js"></script>
        <div class="width_1210">
            <div class="top_first"> </div>
            <!--订单页面-->
            <div class="order_con" >
                <form id="order_form" action="<{$config.weburl}>/?m=product&s=shop_reserve" method="post" onsubmit=" return check_data();">
                    <input type="hidden" name="act" value="reserve"/>
                    <input type="hidden" name="product_name" value="<{$product_info.pname}>" />
                    <input type="hidden" name="product_id" value="<{$product_info.id}>"/>
                    <div class="order_left">
                        <div class="order_data_con">
                            <div class="yd_msg">
                                <h3>待定信息<span></span></h3>
                                <div class="msg_con">
                                    <dl>
                                        <dt>票品：</dt>
                                        <dd style="line-height: 30px;"><{$product_info.pname}></dd>
                                    </dl>
                                    <dl>
                                        <dt>联系人：</dt>
                                        <dd><input type="text" name="user_name" id="user_name" class="msg_text" value="" /></dd>
                                    </dl>
                                    <dl>
                                        <dt>联系手机：</dt>
                                        <dd><input type="text" class="msg_text" name="user_mobile" id="user_mobile" value="" /></dd>
                                    </dl>

                                    <dl>
                                        <dt>数量：</dt>
                                        <dd><input type="text" class="msg_text" name="num" id="num" value="" /></dd>
                                    </dl>

                                    <dl>
                                        <dt>心理价位：</dt>
                                        <dd><input type="text" class="msg_text" name="price" id="price" value="" /></dd>
                                    </dl>

                                    <dl>
                                        <dt>备注：</dt>
                                        <dd><textarea class="msg_area" name="mark" id="mark" cols="" rows=""></textarea></dd>
                                    </dl>
                                </div>
                            </div>


                            <!--预定按钮-->
                            <div class="tj_btn_order">
                                <a href="javascript:;" class="btnsaveorder">提交订单</a>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <script type="text/javascript">

            $(".btnsaveorder").on("click",function(){
                $("#order_form").submit();
            });

            function check_data(){
                var user_name = $("#user_name").val();
                var user_mobile = $("#user_mobile").val();
                var num = $("#num").val();
                var price = $("#price").val();
                var mark = $("#mark").val();

                if(user_name == ''){
                    alert("请填写联系人");
                    return false;
                } else if(user_mobile == '') {
                    alert("请填写联系手机");
                    return false;
                } else if(num == '') {
                    alert("请填写数量");
                    return false;
                } else if(price == '') {
                    alert("请填写价格");
                    return false;
                } else if(mark == '') {
                    alert("请填写备注");
                    return false;
                } else {
                    return true;
                }

            }
        </script>
<{include file="footer.htm"}>

